package jinx.lbj.springcloud_game;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SpringBootApplication
@EnableEurekaClient
@RestController
public class SpringcloudGameApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringcloudGameApplication.class, args);
	}

	@RequestMapping(value = "getGames")
	public List<Map> getGames(){
		Map<String, String> map = new HashMap();
		map.put("game", "persona");
		List<Map> maps = new ArrayList<>();
		maps.add(map);
		return maps;
	}
}
